package com.fanrui.code.entity;

import java.io.Serializable;
import java.util.Date;

import com.fanrui.code.db.jvmdb.IPersistable;

/**
 * @author 
 */
public class TableLog implements Serializable, IPersistable<Integer> {
    private Integer id;

    /**
     * 0赣州1爆胡
     */
    private Integer gameType;

    private Integer tableId;

    /**
     * 防止id重复
     */
    private String logToken;

    /**
     * 玩家id
     */
    private Long playerId;

    /**
     * 玩家昵称
     */
    private String playerName;

    /**
     * 收益
     */
    private Integer income;

    /**
     * 收益详细信息
     */
    private String incomeInfo;

    /**
     * 当前局数 如果是匹配场 为null
     */
    private Integer inning;

    /**
     * 记录时间
     */
    private Date logTime;

    /**
     * 俱乐部战绩，不是俱乐部战绩为0
     */
    private Integer clubId;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGameType() {
        return gameType;
    }

    public void setGameType(Integer gameType) {
        this.gameType = gameType;
    }

    public Integer getTableId() {
        return tableId;
    }

    public void setTableId(Integer tableId) {
        this.tableId = tableId;
    }

    public String getLogToken() {
        return logToken;
    }

    public void setLogToken(String logToken) {
        this.logToken = logToken;
    }

    public Long getPlayerId() {
        return playerId;
    }

    public void setPlayerId(Long playerId) {
        this.playerId = playerId;
    }

    public String getPlayerName() {
        return playerName;
    }

    public void setPlayerName(String playerName) {
        this.playerName = playerName;
    }

    public Integer getIncome() {
        return income;
    }

    public void setIncome(Integer income) {
        this.income = income;
    }

    public String getIncomeInfo() {
        return incomeInfo;
    }

    public void setIncomeInfo(String incomeInfo) {
        this.incomeInfo = incomeInfo;
    }

    public Integer getInning() {
        return inning;
    }

    public void setInning(Integer inning) {
        this.inning = inning;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }

    public Integer getClubId() {
        return clubId;
    }

    public void setClubId(Integer clubId) {
        this.clubId = clubId;
    }

	@Override
	public void setPersistKey(Integer id) {
		this.id = id;
	}

	@Override
	public Integer getPersistKey() {
		return id;
	}
}